const parent = {};

let _age = 0;
Object.defineProperty(parent, 'age', {
    enumerable: true,
    configurable: true,
    get() {
        console.log('reading age:', _age);
        return _age;
    },
    set(val) {
        console.log('setting age to', val);
        _age = val;
    }
})

parent.age = 42
console.log(parent.age)

const child = Object.create(parent);
child.age = 16;
console.log('child.age:', child.age);
console.log('parent\'s age:', parent.age);
